﻿@using BonjourQuotation.UI.Models.SetupModel
@model SetupSpecialDatesGridViewModel
@{
    
}
@using (@Html.BeginForm("AddNewSpecialDate", "Setup", FormMethod.Post, new { id = "AddNewSpecialDateForm" }))
{
     <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    
    Model.SelectedSpecialDatesCountryID = Model.Rows[0].CountryID;
    Model.SelectedSpecialDatesCityID = Model.Rows[0].SelectedSpecialDatesCityID;
    <div class="pull-right" style="margin-bottom:15px;">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SelectedSpecialDatesCountryID)</span>
                    @Html.DropDownListFor(model => Model.SelectedSpecialDatesCountryID, new SelectList(Model.CountryID, "Value", "Text"), new { @class = "SpecialDatesAddElementChange table_inputs_SmallPadding2 inpputgr form-control AddCountryDrop", @id = "SelectedSpecialDatesCountryID" })
                    @Html.DropDownListFor(model => Model.Rows[0].CountryID, new SelectList(Model.CountryID, "Value", "Text"), new { @class = "RoomGridDropHide", @id = "SelectedSpecialDatesCountryIDHidden" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].CityID)</span>
                    @Html.DropDownListFor(model => Model.SelectedSpecialDatesCityID, new SelectList(Model.Rows[0].CityID, "Value", "Text"), "Select", new { @class = "SpecialDatesAddElementChange table_inputs_SmallPadding2 inpputgr form-control AddCityDrop AddForChangeCityFromCountry Required", @id = "AddSelectedSpecialDatesCityID" })
                    @Html.DropDownListFor(model => Model.Rows[0].SelectedSpecialDatesCityID, new SelectList(Model.Rows[0].CityID, "Value", "Text"), "Select", new { @class = "RoomGridDropHide AddForChangeCityFromCountryImit", @id = "SelectedSpecialDatesCityIDHidden" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].SpecialDatesStartDate)</span>
                    @Html.TextBoxFor(model => model.Rows[0].SpecialDatesStartDate, new { @class = "SpecialDatesAddElementChange table_inputs_SmallPadding2 inpputgr form-control Date Required", @style = "cursor:pointer;", @id = "AddSpecialDatesStartDate" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-8">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].VendorName)</span>
                    @Html.TextBoxFor(model => model.Rows[0].VendorName, new { @class = "SpecialDatesAddElementChange table_inputs_SmallPadding2 inpputgr form-control QuotaTxtComplete", @id = "SpecialDatesVendorName" })
                    @Html.HiddenFor(model => model.Rows[0].VendorID, new { @id = "AddVendorID"})
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].SpecialDatesEndDate)</span>
                    @Html.TextBoxFor(model => model.Rows[0].SpecialDatesEndDate, new { @class = "SpecialDatesAddElementChange table_inputs_SmallPadding2 inpputgr form-control Date Required", @style = "cursor:pointer;", @id = "AddSpecialDatesEndDate" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsHotel)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsHotel, new { @class = "SpecialDatesAddElementChange AddCheckboxForValidate", @id = "SpecialDatesIsHotel" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsAttraction)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsAttraction, new { @class = "SpecialDatesAddElementChange AddCheckboxForValidate", @id = "SpecialDatesIsAttraction" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsRestaurant)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsRestaurant, new { @class = "SpecialDatesAddElementChange AddCheckboxForValidate", @id = "SpecialDatesIsRestaurant" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsMisc)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsMisc, new { @class = "SpecialDatesAddElementChange AddCheckboxForValidate", @id = "SpecialDatesIsMisc" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsBus)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsBus, new { @class = "SpecialDatesAddElementChange AddCheckboxForValidate", @id = "SpecialDatesIsBus" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsActive)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsActive, new { @class = "SpecialDatesAddElementChange", @id = "SpecialDatesIsActive" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].SpecialDatesNotes)</span>
                    @Html.TextBoxFor(model => model.Rows[0].SpecialDatesNotes, new { @class = "SpecialDatesAddElementChange table_inputs_SmallPadding2 inpputgr form-control Required", @id = "SpecialDatesNotes" })
                </div>
            </div>
        </div>
        <div class="SaveCancelDiv">
            <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
            <button class="btn14 btn50" type="button" id="SpecialDateAddBtn">Save</button>
        </div>
    </div>
}





